package submit;

import wellsim.no.ntnu.fp.su.Well;

public class WellReg {
	
		private Well well;
		private static int wellId;	
		private static int IWSId; //LocalWatchSystemId
		private double R0;
		private double R1;
		private double P1;
		private double T1;
			
		public WellReg(int wellId, int IWSId, double R0, double R1, double P1, double T1){
			this.wellId = wellId;
			this.IWSId = IWSId;
			this.R0 = R0;
			this.R1 = R1;
			this.P1 = P1;
			this.T1 = T1;
		
			well = new Well();

		}
		/**
		 * returns the wellId for a well
		 * @return - int, the wellId for the well
		 */
		public static int getWellId() {
			return wellId;
		}

		/**
		 * sets the well number for the well
		 */
		public static void setWellId(int wellnr) {
			wellId = wellnr;
		}

		/**
		 * returns the IWSID for the well
		 * @return - int, the IWSId value for the well
		 */
		public static int getIWSId() {
			return IWSId;
		}
		/**
		 * returns the R value for the well
		 */
		public double getR0() {
			return R0;
		}
		/**
		 * returns the P value for the well
		 */
		public double getR1() {
			return R1;
		}
		/**
		 * returns the TEVlim value for the well
		 */
		public double P1() {
			return P1;
		}
		/**
		 * returns the deltaTlim value for the well
		 */
		public double T1() {
			return T1;
		}
		
		public Well getWell(){
			return well;
		}
		@Override
		public String toString(){
			return "Well ID:" + wellId + " | IWSId:" + IWSId +
			" | R0:" + R0 + " | R1:" + R1 + " | " + 
			"P1:" + P1 + " | " + "T1:" + T1 + " | " + "\n";
		}	

	}


